<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
  <head>
  	<base href="<%=basePath%>">
    <%@include file="jsp/headMeta.jsp" %>
  </head>
  <!-- <a href="productType/listProductType.action">Type List</a> <br> // 
  <a href="product/listProduct.action">Product List</a> <br>
  <a href="user/listUser.action">User List</a> <br>
  <a href="order/listOrder.action">Order List</a> <br> // 订单列表
  <a href="orderItem/listOrderItem.action">OrderItem List</a> <br>   // 订单项
  <a href="order/listReturns.action">Returns List</a> <br>
  <a href="order/ordering.action">ordering</a> <br> -->
  <body class="skin-blue">
  	<%@include file="jsp/header.jsp" %>
    <div class="wrapper row-offcanvas row-offcanvas-left">
        <!-- Left side column. contains the logo and sidebar -->
        <%@include file="jsp/sidebar.jsp" %>

        <!-- Right side column. Contains the navbar and content of the page -->
        <aside class="right-side">
            <!-- Content Header (Page header) -->
            <section class="content-header">
                <h1>
                    首页
                    <small>控制面板</small>
                </h1>
            </section>

            <!-- Main content -->
            <section class="content">

                <!-- Small boxes (Stat box) -->
                <div class="row">
                    <div class="col-lg-3 col-md-6">
                        <!-- small box -->
                        <div class="small-box bg-aqua">
                            <div class="inner">
                                <h3>
                                    服务
                                </h3>
                                <p>
                                    收银台
                                </p>
                            </div>
                            <div class="icon">
                                <i class="fa fa-laptop"></i>
                            </div>
                            <a href="order/ordering.action?userId=${id }" class="small-box-footer">
                                详细&nbsp;&nbsp;<i class="fa fa-arrow-circle-right"></i>
                            </a>
                        </div>
                    </div><!-- ./col -->
                    <s:if test="#session.power>1">
                        <div class="col-lg-3 col-md-6">
                            <!-- small box -->
                            <div class="small-box bg-green">
                                <div class="inner">
                                    <h3>
                                        商品
                                    </h3>
                                    <p>
                                        商品列表、添加
                                    </p>
                                </div>
                                <div class="icon">
                                    <i class="fa fa-barcode"></i>
                                </div>
                                <a href="product/listProduct.action" class="small-box-footer">
                                    详细&nbsp;&nbsp;<i class="fa fa-arrow-circle-right"></i>
                                </a>
                            </div>
                        </div><!-- ./col -->
                        <div class="col-lg-3 col-md-6">
                            <!-- small box -->
                            <div class="small-box bg-yellow">
                                <div class="inner">
                                    <h3>
                                        订单
                                    </h3>
                                    <p>
                                        订单操作、查询
                                    </p>
                                </div>
                                <div class="icon">
                                    <i class="fa fa-truck"></i>
                                </div>
                                <a href="order/listOrder.action" class="small-box-footer">
                                    详细&nbsp;&nbsp;<i class="fa fa-arrow-circle-right"></i>
                                </a>
                            </div>
                        </div><!-- ./col -->
                        <div class="col-lg-3 col-md-6">
                            <!-- small box -->
                            <div class="small-box bg-red">
                                <div class="inner">
                                    <h3>
                                        报表
                                    </h3>
                                    <p>
                                        过去营业额
                                    </p>
                                </div>
                                <div class="icon">
                                    <i class="fa fa-bar-chart-o"></i>
                                </div>
                                <a href="chart/saleAmount.action" class="small-box-footer">
                                    详细&nbsp;&nbsp;<i class="fa fa-arrow-circle-right"></i>
                                </a>
                            </div>
                        </div><!-- ./col -->
                    </s:if>
                </div><!-- /.row -->
            </section><!-- /.content -->
        </aside><!-- /.right-side -->
    </div><!-- ./wrapper -->
  </body>
  <%@include file="jsp/javascript.jsp" %>
</html>
